version: "3.9"

services:
  site:
    image: $WERF_WEB_BACKEND_DOCKER_IMAGE_NAME
    command: "/app/server"
    environment:
      VROUTER_DEFAULT_GROUP: "v1"
      VROUTER_DEFAULT_CHANNEL: "latest"
      VROUTER_DEFAULT_CHANNEL_FOR_DEFAULT_GROUP: "latest"
      VROUTER_SHOW_LATEST_CHANNEL: "true"
      VROUTER_URL_VALIDATION: "false"
      VROUTER_LISTEN_PORT: "8080"
      VROUTER_LOG_LEVEL: "debug"
      VROUTER_PATH_STATIC: "/app/root"
      VROUTER_PATH_CHANNELS_FILE: "releasedata/channels.yaml"
      VROUTER_I18N_TYPE: "separate-domain"
      VROUTER_DOMAIN_MAP: "eyJlbiIgOiAibG9jYWxob3N0IiwgInJ1IiA6ICJydS5sb2NhbGhvc3QifQo="
    networks:
      - deckhouse
    volumes:
      - ".helm/channels.yaml:/app/releasedata/channels.yaml:ro"
  front:
    image: $WERF_WEB_FRONTEND_DOCKER_IMAGE_NAME
    #image: nginx:latest
    volumes:
      - ".werf/nginx-dev.conf:/etc/nginx/nginx.conf:ro"
      - "./backends/docs-builder-template/public/en/modules:/app/en/modules:ro"
      - "./backends/docs-builder-template/public/ru/modules:/app/ru/modules:ro"
    ports:
      - "80:80"
    networks:
      - deckhouse

networks:
  deckhouse:
    name: deckhouse
    external: true
